/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2021 并保留所有权利。
 * Copyright 2021, YCHS Information&Science Technology Co.,Ltd,
 * All rights reserved.
 */
package com.yckj.lawyermanager.dongao.service;

import com.yckj.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

/**
 * 律师档案业务接口
 * @author shidongjia
 * @version 1.0
 */
public interface LawyerService {
    /**
     * 修改律师
     * @param lawyer 律师对象
     * @return 成功返回1，否则为0
     */
    public int modifyLawyer(Lawyer lawyer);

    /**
     * 按编号查询律师
     * @param lawyerid 律师编号
     * @return 成功返回1.否则为0
     */
    public Lawyer findLawyerById(int lawyerid);

    /**
     * 删除律师
     * @param lawyerid 律师编号
     * @return 成功返回1，否则为0
     */
    public int removeLawyer(int lawyerid);

    /**
     * 律师集合
     * @return 成功为1，否则为0
     */
    public List<Lawyer> findLawyer();
    /**
     * 添加律师对象
     * @param lawyer 律师对象
     * @return 成功返回1，否则返回0
     */
    public int addLawyer(Lawyer lawyer);
}
